package com.neusoft.databus.core.service;

import org.springframework.web.bind.annotation.RequestHeader;

import com.neusoft.bizcore.web.dto.result.ResultDTO;
import com.neusoft.databus.common.bean.CommandBean;

/**
 * 采集服务
 *
 * @author sunchf
 * @date 2018年12月26日 上午11:13:46
 */
public interface ExecuteCollectService {

    ResultDTO<CommandBean> collect(CommandBean command,
            @RequestHeader(name = "stateIdentifier", required = false) String stateIdentifier) throws Exception;

    ResultDTO<CommandBean> control(CommandBean command,
            @RequestHeader(name = "stateIdentifier", required = false) String stateIdentifier) throws Exception;

}
